package com.ssh.pac;

public class Test {
	public static void main(String[] args) {
		//Storage storage = new StorageForSynchronized();
		Storage storage = new StorageForReentrantLock();
		
		Producer p1 = new Producer(40, storage);
		Producer p2 = new Producer(30, storage);
		Producer p3 = new Producer(30, storage);
		
		Consumer c1 = new Consumer(25, storage);
		Consumer c2 = new Consumer(45, storage);
		Consumer c3 = new Consumer(12, storage);
		
		p1.start();
		c1.start();
		p2.start();
		c2.start();
		p3.start();
		c3.start();
	}
}
